﻿<!DOCTYPE html>

<html lang="en" xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="utf-8" />
    <title></title>
</head>
<body>
    <script>
        //函数的2钟命名方法
        //1 通过function 关键字命名
        function play() {
            console.log(`今晚吃鸡`);
        }
        play();

        //匿名函数 把函数值赋给变量
        let eat = function (menu) {
            console.log(`今晚${menu}`);
        }
        eat(`与`);

        //箭头函数
        let run = () => {
            console.log(`run了`);
        }
        run();
    </script>
</body>
</html>